home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group96a.txt
/
000173_icon-group-sender _Wed Aug 7 10:56:09 1996.msg
< prev
next >
Wrap
Internet Message Format
|
1996-09-05
|
1KB
Received: by cheltenham.cs.arizona.edu; Wed, 7 Aug 1996 13:28:49 MST
Date: Wed, 7 Aug 1996 10:56:09 -0400 (EDT)
From: "Phillip L. Thomas" <ptho@loc.gov>
To: Roger Sorrells <X041RS@tamvm1.tamu.edu>
Cc: icon-group@cs.arizona.edu
Subject: Re: dos system call
In-Reply-To: <199608062035.AA14689@optima.cs.arizona.edu>
Message-Id: <Pine.A32.3.93.960807105123.56099C-100000@rs8.loc.gov>
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Errors-To: icon-group-errors@cs.arizona.edu
Status: O
I believe I asked Ralph Griswold this question a few years
back and he replied that the variation of effects from making
a system call were so varied that environment variables could
not be set, only read.
The system() call has another effect in DOS which is unfortunate:
it calls up another copy of COMMAND.COM, meaning you've lost another
64K of critical memory in addition to the process you are trying
to start. Most DOS C compilers have other ways (exec..) that do not
invoke an addition COMMAND.COM, but this may again be C-compiler
dependent.
Phillip Lee Thomas
On Tue, 6 Aug 1996, Roger Sorrells wrote:
> when I include the lines
> system("set") #1
> system("set x=y") #2
> system("set") #3
> in a program, I get the same output from #3 as from #1,
> no additional X=y among the environment variables.
>
> How do I set DOS environment variables from within an Icon program?
> I am using MS-DOS 6.21 and Icon 8.10
>
>